<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>下拉选择器示例</title>
  <link rel="stylesheet" href="styles.css">
  <style>
    .container {
      margin: 20px;
    }

    label {
      font-size: 16px;
      margin-right: 10px;
    }

    select {
      padding: 5px;
      font-size: 16px;
    }
  </style>
</head>

<body>
  <div class="container">
    <label for="dropdown">选择一个选项:</label>
    <select id="dropdown">
      <option value="option1">选项 1</option>
      <option value="option2">选项 2</option>
      <option value="option3">选项 3</option>
    </select>
  </div>

  <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
  <script src="scripts.js"></script>
</body>
<script>
  $(document).ready(function () {
    $('#dropdown').change(function () {
      var selectedValue = $(this).val()
      alert('您选择了: ' + selectedValue)
    })
  });
</script>

</html>